package com.sample.springbatch.job.sample.service;

import com.sample.springbatch.model.RepayOrderInfo;
import org.springframework.batch.support.annotation.Classifier;
import org.springframework.stereotype.Component;

/**
 * Created by zwg on 2017/10/31.
 */
@Component
public class RepayOrderRouterClassifiter {

    @Classifier
    public String classify(RepayOrderInfo repayOrderInfo){
        if(repayOrderInfo.getRepayMethod()==3){
            return "3";
        }else{
            return "0";
        }
    }
}
